package com.neshai.webapp.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("invoices")
public class Invoices implements Serializable {

    @TableId(value = "invoice")
    private String invoice;

    @TableField("status")
    private int status;

    @TableField("customer_email")
    private String customerEmail;

    @TableField("product")
    private String product;

    @TableField("period_end")
    private Long periodEnd;

    @TableField("currency")
    private String currency;

    @TableField("amount_due")
    private Long amountDue;

    @TableField("amount_paid")
    private Long amountPaid;

    @TableField("hosted_invoice_url")
    private String hostedInvoiceUrl;

    @TableField("customer")
    private String customer;

    @TableField("customer_name")
    private String customerName;

    @TableField("customer_phone")
    private String customerPhone;

    @TableField("completed_at")
    private LocalDateTime completedAt;
}